package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单项对象 order_item
 *
 * @author ruoyi
 * @date 2022-05-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderItem extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 订单主键id */
    @Excel(name = "订单主键id")
    private Long orderId;

    /** 关联商品id */
    @Excel(name = "关联商品id")
    private Long productId;

    /** 价格(订单快照) */
    @Excel(name = "价格(订单快照)")
    private Double unitPrice;

    /** 数量(订单快照) */
    @Excel(name = "数量(订单快照)")
    private Integer num;

    private String name;
    private String cover;


}
